<!DOCTYPE html>
<html>
<head>
<title></title>
	<header th:replace="header"></header>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <i-col span="4">
                <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
            </i-col>
            <i-button @click="query">查询</i-button>
          <!--  <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button> --> 
            <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
          <!--  <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button> --> 
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="rule" :label-width="80">
            <Form-item label="等级名称" prop="name">
                <i-input v-model="rule.name" placeholder="等级名称"/>
            </Form-item>
            <Form-item label="运营成本" prop="yycb">
                <i-input v-model="rule.yycb" placeholder="运营成本"/>
            </Form-item>
             <Form-item label="税率" prop="shuilv">
                <i-input v-model="rule.shuilv" placeholder="税率"/>
            </Form-item>
             <Form-item label="利润" prop="lirun">
                <i-input v-model="rule.lirun" placeholder="利润"/>
            </Form-item>
             <Form-item label="推广分红" prop="tgfh">
                <i-input v-model="rule.tgfh" placeholder="推广分红"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px">返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="/js/sys/rule.js"></script>
</body>
</html>